package com.tgb.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/index")
public class IndexController {
	@Autowired
//	private UserService userService;
	
	/**
	 * 跳转到首页
	 * @param request
	 * @return
	 */
	@RequestMapping("/getIndex")
	public String getIndex(HttpServletRequest request){
		
//		List<User> findAll = userService.findAll();
//		
//		request.setAttribute("userList", findAll);
		return "/comment/index";
	}

}
